docs.rs failed to build piston_window-0.104.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
piston_window-0.131.0
piston_window
The official Piston convenience window wrapper for the Piston game engine
Notice! If this is your first time visiting Piston, start here.
Piston-Window is designed for only one purpose: Convenience.
- Reexports everything you need to write 2D interactive applications
.draw_2d
for drawing 2D, and.draw_3d
for drawing 3D- Uses Gfx to work with 3D libraries in the Piston ecosystem
extern crate piston_window;
use *;
PistonWindow
uses Glutin as window back-end by default,
but you can change to another back-end, for example SDL2 or GLFW by changing the type parameter:
let mut window: = new
.exit_on_esc.build.unwrap;
PistonWindow
implements AdvancedWindow
, Window
and EventLoop
.
Nested game loops are supported, so you can have one inside another.
while let Some = window.next
Ideas or feedback? Open up an issue here.